cmake_minimum_required(VERSION 3.8)
project(exec_proc_5)
execute_process(COMMAND echo "hello world" OUTPUT_VARIABLE var1 ERROR_VARIABLE var2)
message(STATUS "var1 = ${var1}")
message(STATUS "var2 = ${var2}")
execute_process(COMMAND ls - OUTPUT_VARIABLE var3 ERROR_VARIABLE var4)
message(STATUS "var3 = ${var3}")
message(STATUS "var4 = ${var4}")
